package com.mrogrape.notepad.ui;

import java.awt.LayoutManager;

import javax.swing.JPanel;


public abstract class ClosableTabPanel extends JPanel{

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;

	/**
	 * {@inheritDoc}
	 */
	public ClosableTabPanel() {

		super();
	}

	/**
	 * {@inheritDoc}
	 */
	public ClosableTabPanel(boolean isDoubleBuffered) {

		super(isDoubleBuffered);
	}

	/**
	 * {@inheritDoc}
	 */
	public ClosableTabPanel(LayoutManager layout, boolean isDoubleBuffered) {

		super(layout, isDoubleBuffered);
	}

	/**
	 * {@inheritDoc}
	 */
	public ClosableTabPanel(LayoutManager layout) {

		super(layout);
	}

	/**
	 * 关闭当前页面。
	 * @return 是否关闭，如果需要取消关闭动作则返回false。
	 */
	public abstract boolean onClose();

	/**
	 * 获取选项卡标题。
	 * 
	 * @return
	 */
	public abstract String getViewableTitle();

}
